<ul id="elements">
<?php 
foreach ($this->elements as $k => $elt): ?>
<li>
    <a href="<?php echo $this->url(array("id" => $elt->id()), "viewelement", true) ?>">
    <img class="preview" src="<?php echo $elt->get_image_uri()?>" alt="preview" />
    <span class="name"><?php echo substr($elt->name(), 0, 56).'...' ?></span>
    <?php $auth = new Buzz_AuthChecker(); ?>
     <?php if ($auth->ownsElement($elt->id())): ?>
        <a href="<?php echo $this->url(array("id" => $elt->id()), "removeelement", true)  ?>">
        <img class="button-delete" src="/images/cross%20.png" />
        </a>
    <?php endif; ?>
    </a>
</li>
<?php
endforeach;
?>
</ul>